import Vue from 'vue';
import VueRouter from 'vue-router';
import Index from './pages/Index.vue';
import Class from './pages/Class.vue';
import Buycar from './pages/Buycar.vue';
import My from './pages/My.vue';
import House from './pages/House.vue';
import Search from './pages/Search.vue'

Vue.use(VueRouter);

const routes = [
    {
        path: '/',
        component: Index
    },
    {
        path: '/class',
        component: Class
    },
    {
        path: '/buycar',
        component: Buycar
    },
    {
        path: '/my',
        component: My
    },
    {
        path: '/house',
        component: House
    },
    {
        path: '/search',
        component: Search
    }
]

const router = new VueRouter({ routes, mode: 'history' });

export default router;